package test23;

import java.util.*;
public class Task1 {
public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
	double arr[]= {9.8,12,45,67,23,1.98,2.55,45};
	Arrays.sort(arr);   
	int and=0;
	for(int i=0;i<arr.length;i++) {
		and+=arr[i];
	}
	System.out.println("max = "+arr[arr.length-1]);
	System.out.println("min = "+arr[0]);
	System.out.println("avg = "+and/arr.length);
}
}
